<html>
<head>
<title><?= $title?></title>
</head>
<body>
<h3><?= $title ?></h3>
<form name="deleteUserForm" action="users.php">
<input type="hidden" name="action" value="delete"></input>
<table>
<tr>
	<td>uid</td>
	<td>username</td>
	<td>password</td>
	<td>delete?</td>
</tr>
<?php 
	foreach ($users as $user)
	{
		echo "
		<tr>
			<td>$user[uid]</td>
			<td>$user[username]</td>
			<td>$user[password]</td>
			<td><input type='submit' name='uid' value='$user[uid]' /></td>
		</tr>
";
	}
?>
</table>
</form>

<br />
<br />
<div id="insertUserDiv">
New User:
<form name="insertUserForm" action="users.php">
<input type="hidden" name="action" value="insert"></input>
username:<input type="text" name="username" value=""></input>
password:<input type="text" name="password" value=""></input>
<input type="submit" />
</form>
</div>

<div id="manageDiv">
<form name="manageForm" action="users.php">
<input type="hidden" name="action" value="manage"></input>
<input type="submit" name="create" value="create" />
<input type="submit" name="drop" value="drop" />
</form>
</div>

</body>
</html>
